package com.zat.mes.andrmes.dofun.main.adapter

import android.text.TextUtils
import android.view.View
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zat.mes.andrmes.R
import com.zat.mes.andrmes.data.BindMachineBean
import com.zat.mes.andrmes.data.DayPlanNotifBean
import com.zat.mes.andrmes.data.Item

/**
 * @author zy
 * @date :2020-07-14 18:12
 * @description:绑定设备
 */
class MsgAdapter(layoutResId: Int) :
    BaseQuickAdapter<Item, BaseViewHolder>(layoutResId) {
    override fun convert(helper: BaseViewHolder, item: Item) {

        helper.setText(R.id.tvNumMsgList, item?.title)
            .setText(R.id.tvStatusMsgList, item?.typeName)
//            .setText(R.id.tvOrderStyleMsgList,item?.content )
//            .setText(R.id.tvEmpMsgList, "操作人：" + item?.empName)
            .setText(R.id.tvDateMsgList,  item?.inputDateTime)


    }


}